<?php
/**
 * File: calendarindex.php.
 * Author: zhouzhe@haibao.com
 * Editor: PhpStorm
 * Date: 16/2/24 下午3:13
 * Brief:
 */
namespace haibao\cms\model\data;

class CalendarIndex extends \haibao\cms\model\data\Base{
	/**
	 * 状态
	 */
	const STATUS_ENABLE = 1;
	const STATUS_DISABLE = 0;
	/**
	 *  关联文章IdE
	 */
	public $ArticleId;

	/**
	 * 题图
	 */
	public $HotImageId;

	/**
	 * 标题
	 */
	public $Title;

	public $Status;

	public $CreateBy;

	public $CreateTime;

	public function __construct(){
		parent::__construct ();
		$this->stringField ( 'Title', 'Title', true );
		$this->intField ( 'ArticleId', 'ArticleId', false );
		$this->intField ( 'HotImageId', 'HotImageId', true );
		$this->intField ( 'Status', 'Status', true );
		$this->intField ( 'CreateBy', 'CreateBy', true );
		$this->intField ( 'CreateTitme', 'CreateTime', true );

		$this->setTableName('CalendarIndex');
	}
}